package community

import (
	"crmeb-common/global"
)

// CommunityReply 社区评论表
type CommunityReply struct {
	global.BaseModel
	Type int32 `json:"type" gorm:"column=type;comment:评论类型：1-评论，2-回复"`

	Uid int32 `json:"uid" gorm:"column=uid;comment:发言用户ID"`

	Content string `json:"content" gorm:"column=content;comment:内容"`

	ParentId int32 `json:"parentId" gorm:"column=parent_id;comment:一级评论ID"`

	ParentUid int32 `json:"parentUid" gorm:"column=parent_uid;comment:一级用户ID"`

	ReviewId int32 `json:"reviewId" gorm:"column=review_id;comment:原评论ID"`

	ReviewUid int32 `json:"reviewUid" gorm:"column=review_uid;comment:原评论用户ID"`

	CountStart int32 `json:"countStart" gorm:"column=count_start;comment:点赞数"`

	CountReply int32 `json:"countReply" gorm:"column=count_reply;comment:评论数"`

	AuditStatus int32 `json:"auditStatus" gorm:"column=audit_status;comment:审核状态:0-待审核，1-审核通过，2-审核失败"`

	Refusal string `json:"refusal" gorm:"column=refusal;comment:拒绝原因"`

	NoteId int32 `json:"noteId" gorm:"column=note_id;comment:文章id"`
}
